package a01;
/**
 * @author Sven Eric Panitz
 */
public class PaintableArrayPanel extends SizedPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Paintable[] ps;

	public PaintableArrayPanel(Paintable[] pa) {
		ps = pa;
	}

	public void paintComponent(java.awt.Graphics g) {
		for (Paintable p : ps)
			p.paintTo(g);
	}
}
